//
//  ShangPinXiangQing.m
//  EJLX
//
//  Created by adc on 15/11/23.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "ShangPinXiangQing.h"

@implementation ShangPinXiangQing
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self = [super init];
    if (self)
    {
        _ID=[userDic[@"id"]intValue];
        _price=[userDic[@"price"]intValue];
        //_stockNum=[userDic[@"stockNum"]intValue];
        _shopId=[userDic[@"shopId"]intValue];
        _discountPrice=[userDic[@"discountPrice"]intValue];
        _deliveryFee=[userDic[@"deliveryFee"]intValue];
        _commision=[userDic[@"commision"]intValue];
        _collectionNum=[userDic[@"collectionNum"]intValue];
        _imgUrl=[userDic[@"imgUrl"]copy];
         _title=[userDic[@"title"]copy];
        _discount=[userDic[@"discount"]copy];
        _resuleAry=[NSMutableArray array];
        _resuleAry=userDic[@"detailImages"];
    }
    return self ;
}

@end
